<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>交账管理</title>
<jsp:include page="/header.jsp"></jsp:include>
<link href="${basePath }/css/ui.css" rel="stylesheet" type="text/css">
<style type="text/css"> .red{color: red;} </style>
<script type="text/javascript">
	function finishCheck() {
		$.ajax({
			url:"${basePath}/shift/check.htm?id=${info.id}",
			dataType:"json"
		}).done(function(data) {
			$.jqalert(data.msg, "提示", function() {
				if(data.isSuccess) window.location = "${basePath}/shift/list.htm";
			})
		})
	}
</script>
</head>
<body>
	<div id="header_div" class="tab_li clearfix">
		<a href="${basePath }/shift/takeStock.htm" class="">下班盘点</a>
        <a href="${basePath }/shift/summary.htm" class="">交账管理</a>
        <a href="${basePath }/shift/takeStockdiff.htm" class="">差异商品</a>
        <a href="${basePath }/shift/check_view.htm" class="act">上班核实</a>
        <a href="${basePath }/shift/list.htm" class="">交班记录</a>
    </div>
    <div class="main">
    	<div class="cont">
        	<h2 class="title">货品信息：</h2>
        	<div class="b_div">
        		<p class="clearfix">
					<span class="info_s fl">上班库存数量：<span class="myinput" title="sale_amount">${info.old_stock }</span>元</span>
					<span class="info_s fl">门店收货数量：<span class="myinput" title="sale_amount">${info.in_transfer_num }</span>元</span>
					<span class="info_s fl">商品回购数量：<span class="myinput" title="sale_amount">${info.buyback_num }</span>元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">当班pos销售数量：<span class="myinput" title="sale_amount">${info.pos_num }</span>元</span>
					<span class="info_s fl">门店调出数量：<span class="myinput" title="sale_amount">${info.out_transfer_num }</span>元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">下班库存数量：<span class="myinput" title="sale_amount">${info.new_stock }</span>元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">当班差异数量：<span class="myinput" title="sale_amount">${info.duo_num+info.shao_num }</span>元</span>
					<span class="info_s fl">多：<a href="">${info.duo_num }</a>元</span>
					<span class="info_s fl">少：<a href="">${info.shao_num }</a>元</span>
				</p>
			</div>
		</div>
        <div class="cont">
        	<h2 class="title">应交金额：</h2>
            <div class="b_div">
				<p class="clearfix">
					<span class="info_s fl">销售总收入金额：<span class="myinput" title="sale_amount">${info.sale_amount }</span>元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">现金总收入金额：<span class="myinput" title="cash_amount">${info.cash_amount }</span>元</span>
					<span class="info_s fl">商品销售金额：<span class="myinput" title="cash_sale_amount">${info.cash_sale_amount }</span>元</span>
					<span class="info_s fl">预收款金额：<span class="myinput" title="cash_advance_amount">${info.cash_advance_amount }</span>元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">刷卡总收入金额：<span class="myinput" title="bank_amount">${info.bank_amount }</span>元</span>
					<span class="info_s fl">商品销售金额：<span class="myinput" title="bank_sale_amount">${info.bank_sale_amount }</span>元</span>
					<span class="info_s fl">预收款金额：<span class="myinput" title="bank_advance_amount">${info.bank_advance_amount }</span>元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">回购总支出金额：<span class="myinput" title="buyback_amount">${info.buyback_amount }</span>元</span>
					<span class="info_s fl">回购现金支出金额：<span class="myinput" title="buyback_cash_amount">${info.buyback_cash_amount }</span>元</span>
					<span class="info_s fl">回购银行挂账金额：<span class="myinput" title="buyback_bank_amount">${info.buyback_bank_amount }</span>元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">日常总支出金额：<span class="myinput" title="daily_amount">${info.daily_amount }</span>元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">门店备用金金额：<span class="myinput" title="backup_amount">0.00</span>元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">上班次剩余现金金额：<span class="myinput" title="left_amount">${info.left_amount }</span>元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl red">应交现金金额=现金总收入金额+门店备用金基数+上班次剩余现金金额-回购总支出金额-日常总支出金额</span>
				</p>
			</div>
			
			<h2 class="title"></h2>
            <div class="b_div" id="pay_first_div">
				<p class="clearfix">
					<span class="info_s fl">上一班次，应交现金金额：
						<span class="myinput" title="total_amount">${info.total_amount }</span>元
					</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">上交财务金额：5000.00元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">上一班次，实交现金金额：${info.should_amount }元</span>
				</p>
				<p class="clearfix">
					<span class="info_s fl">现金交账差额：${info.diff_amount }元</span>
				</p>
			</div>
			<div class="text_c">
	        	<a href="javascript:;" class="yellow_btn btn" onclick="finishCheck();">核实完毕</a>
	        </div>
        </div>
    </div>
</body>
</html>